﻿@{
ViewBag.Title = "日报查看";
Layout = "~/Views/Shared/_Layout.cshtml";
}
@section mystyle{

}

<div class="content margin-top-20">
  <div class="container">
    <div class="row">
      <div class="col-sm-12">
        <a href="/Dept/Project/level221" class="margin-10" style="text-decoration: underline;">我的日报</a>
        <a href="/Dept/Project/level22" class="margin-10">项目组日报</a>
      </div>
    </div>
  </div>
</div>

<!-- table -->
<div class="padding-top-10 padding-bottom-10 margin-top-20" id="form">
  <div class="container">
    <div class="row">

      <div id="table" class="col-sm-12 margin-top-20">
        <h3>2016年3月14日</h3>
        <table class="table text-center" id="day">
          <thead>
          <tr>
            <th></th>
            <th></th>
            <th>重要等级</th>
            <th>项目</th>
            <th>具体内容</th>
            <th>输出成果</th>
          </tr>
          </thead>
          <tbody>
          <tr v-for="item in am">
            <td rowspan="{{am.length}}" style="vertical-align: middle;" v-if="$index == 0">上午</td>
            <td><span class="margin-top-7 block">{{checkH(9 + $index) + ':00 - ' + (10 + $index) + ':00' }}</span></td>
            <td>
              <div class="margin-top-7">
                <label class="radio-inline c-lable"><input type="radio" name="groupAM{{$index}}" id="groupAM{{$index}}A" value="A"><label for="groupAM{{$index}}A">A</label></label>
                <label class="radio-inline c-lable"><input type="radio" name="groupAM{{$index}}" id="groupAM{{$index}}B" value="B"><label for="groupAM{{$index}}B">B</label></label>
                <label class="radio-inline c-lable"><input type="radio" name="groupAM{{$index}}" id="groupAM{{$index}}C" value="C"><label for="groupAM{{$index}}C">C</label></label>
                <label class="radio-inline c-lable"><input type="radio" name="groupAM{{$index}}" id="groupAM{{$index}}D" value="D"><label for="groupAM{{$index}}D">D</label></label>
              </div>
            </td>
            <td>
              <select name="selectAM{{$index}}" id="selectAM{{$index}}" class="form-control">
                <option value="">请选择</option>
                <option value="imt">imt</option>
                <option value="imj">imj</option>
              </select>
            </td>
            <td>
              <textarea name="textareaAMD{{$index}}" id="textareaAMD{{$index}}" rows="1" class="form-control"></textarea>
            </td>
            <td>
              <textarea name="textareaAMR{{$index}}" id="textareaAMR{{$index}}" rows="1" class="form-control"></textarea>
            </td>
          </tr>
          <tr>
            <td colspan="7"></td>
          </tr>
          <tr v-for="item in pm">
            <td rowspan="{{pm.length}}" style="vertical-align: middle;" v-if="$index == 0">上午</td>
            <td><span style="margin-top: 7px;">{{(13 + $index) + ':00 - ' + (14 + $index) + ':00' }}</span></td>
            <td>
              <div style="margin-top: 7px;">
                <label class="radio-inline c-lable"><input type="radio" name="groupPM{{$index}}" id="groupPM{{$index}}A" value="A"><label for="groupPM{{$index}}A">A</label></label>
                <label class="radio-inline c-lable"><input type="radio" name="groupPM{{$index}}" id="groupPM{{$index}}B" value="B"><label for="groupPM{{$index}}B">B</label></label>
                <label class="radio-inline c-lable"><input type="radio" name="groupPM{{$index}}" id="groupPM{{$index}}C" value="C"><label for="groupPM{{$index}}C">C</label></label>
                <label class="radio-inline c-lable"><input type="radio" name="groupPM{{$index}}" id="groupPM{{$index}}D" value="D"><label for="groupPM{{$index}}D">D</label></label>
              </div>
            </td>
            <td>
              <select name="selectPM{{$index}}" id="selectPM{{$index}}" class="form-control">
                <option value="">请选择</option>
                <option value="imt">imt</option>
                <option value="imj">imj</option>
              </select>
            </td>
            <td>
              <textarea name="textareaPMD{{$index}}" id="textareaPMD{{$index}}" cols="30" rows="1" class="form-control"></textarea>
            </td>
            <td>
              <textarea name="textareaPMR{{$index}}" id="textareaPMR{{$index}}" cols="30" rows="1" class="form-control"></textarea>
            </td>
          </tr>
          </tbody>
        </table>

        <h3>今日未完成工作</h3>
        <table class="table">
          <thead>
          <tr>
            <th>项目</th>
            <th>工作内容</th>
            <th>未完成原因及改进措施</th>
          </tr>
          </thead>
          <tbody>
          <tr>
            <td>
              <select name="noComplete" id="noComplete" style="width: 200px;" v-model="unfinished.name">
                <option value="" selected="selected">请选择</option>
              </select>
            </td>
            <td><textarea name="" id="" class="form-control" rows="1" v-model="unfinished.content"></textarea></td>
            <td><textarea name="" id="" class="form-control" rows="1" v-model="unfinished.reason"></textarea></td>

          </tr>

          </tbody>
        </table>

        <div>
          <button type="button" class="btn btn-success" v-on:click="add1()">
            <span class="glyphicon glyphicon-plus-sign"></span></button>
        </div>

        <table class="table margin-top-20">
          <tbody>
          <tr v-for="item in unfinishedList">
            <td>
              <div v-if="!item.edit">{{item.content}}</div>
              <textarea name="" id="" class="form-control" rows="1" v-model="item.content" v-if="item.edit"></textarea>
            </td>
            <td>
              <div v-if="!item.edit">{{item.reason}}</div>
              <textarea name="" id="" class="form-control" rows="1" v-model="item.reason" v-if="item.edit"></textarea>
            </td>
            <td>
              <div v-if="!item.edit">{{item.improve}}</div>
              <textarea name="" id="" class="form-control" rows="1" v-model="item.improve" v-if="item.edit"></textarea>
            </td>
            <td>
              <div v-if="!item.edit">{{item.etc}}</div>
              <textarea name="" id="" class="form-control" rows="1" v-model="item.etc" v-if="item.edit"></textarea>
            </td>
            <td style="width: 110px;">
              <button type="button" class="btn btn-danger" v-on:click="del1($index)"><span class="glyphicon glyphicon-minus-sign"></span></button>
              <button type="button" class="btn btn-primary" v-on:click="edit1($index)"><span class="glyphicon glyphicon-edit"></span></button>
            </td>
          </tr>
          </tbody>
        </table>



        <h3>今日总结</h3>
        <form class="form-horizontal">
          <div class="form-group">
            <div class="col-sm-3">
              <select name="summary" id="summary" v-model="form.name" style="width: 200px;">
                <option value="" selected="selected">请选择</option>
              </select>
            </div>

            <div class="col-sm-12 margin-top-20">
              <textarea name="" id="" class="form-control" v-model="form.value"></textarea>
            </div>
          </div>

          <div>
            <button type="button" class="btn btn-success" v-on:click="add()">
              <span class="glyphicon glyphicon-plus-sign"></span></button>
          </div>

          <div class="form-group margin-top-20" v-for="item in formList">
            <div class="col-sm-3">
              <div v-if="!item.edit" class="form-control" disabled="disabled">{{item.name}}</div>
              <select name="" id="" class="form-control" v-model="item.name" v-if="item.edit">
                <option value="">请选择</option>
                <option value="imk">imk</option>
                <option value="imt">imt</option>
              </select>
            </div>
            <div class="col-sm-2">
              <button type="button" class="btn btn-danger" v-on:click="del($index)">
                <span class="glyphicon glyphicon-minus-sign"></span></button>
              <button type="button" class="btn btn-primary" v-on:click="edit($index)">
                <span class="glyphicon glyphicon-edit"></span></button>
            </div>
            <div class="col-sm-12 margin-top-20">
              <divp v-if="!item.edit" class="form-control" disabled="disabled">{{item.value}}</divp>
              <textarea name="" id="" class="form-control" v-model="item.value" v-if="item.edit"></textarea>
            </div>
          </div>
        </form>

        <div class="text-right">
          <button class="btn btn-primary" id="submit">保存</button>
          <!--<button>取消</button>-->
        </div>


        <div>
          <p>填写说明：</p>
          <p>1、对每天未完成工作进行原因分析，并找到改进措施；在综合评估工作完成情况的前提下，对每日工作完成情况进行打分：90以上为优秀，完成全部工作任务；80分以上为良好，完成大部分工作任务；70分以上（含70分）为合格；70分以下为不合格。</p>
          <p>2、重要等级：A类：紧急！重要！；B类：紧急！不重要！；C类：重要！不紧急！D类：不紧急！不重要。</p>
          <p>备注:</p>
          <p>请于每日下班前填写，如遇紧急情况或外出，请于次日补回。</p>
        </div>

      </div>

      <!--<div class="col-sm-12 clearfix">
        &lt;!&ndash;<div class="pages"></div>&ndash;&gt;
        <p class="float-left">总条数：<span id="totalRow"></span></p>

        <div class="table-pagination float-right line-height-34 margin-left-10 text-center" id="pages"></div>

        <div class="float-right">
          <form class="form-inline">
            <span>显示条数：</span>
            <select name="pageSize" id="pageSize" class="form-control">
              <option value="10">10</option>
              <option value="20">20</option>
              <option value="30">30</option>
            </select>
          </form>
        </div>


      </div>-->
    </div>
  </div>
</div>

<!--<script id="PROJECT_STAGE" type="text/html">
  {{each PROJECT_STAGE as value i}}
  <option value="{{value.ID}}">{{value.Text}}</option>
  {{/each}}
</script>-->

<script id="l2List" type="text/html">


</script>
@section myscript{
<script src="~/Content/vendor/vue/vue.min.js"></script>
<script src="~/Content/js/level221.js"></script>
}